//
//  HLPopoverController.swift
//  HLwWeibo
//
//  Created by hqhxu on 16/3/1.
//  Copyright © 2016年 hqhxu. All rights reserved.
//

import UIKit

class HLPopoverController: UITableViewController {

    private let reuseID = "cell"
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseID)
    }


    // MARK: - Table view data source
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 5
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        let cell = tableView.dequeueReusableCellWithIdentifier(reuseID, forIndexPath: indexPath)
        
        cell.textLabel?.text = self.datas[(indexPath.row)]
        
        return cell
    }
    
    /// 数据数组
    lazy var datas:[String] = {
        let data = ["首页","好友圈","群微博","我的微博","新浪微博"]
        
        return data
    }()

}
